<?php


namespace app\validate;

use think\Validate;

class  User extends Validate
{
    //当前验证的规则
    protected $rule =
        [
            'name|姓名' => ['require', 'min' => 2, 'max' => 20],
            'email|邮箱' => ['require', 'email'],
            'password|密码' => ['require', 'min' => 3, 'max' => 12, 'alphaNum'],
            'mobile|手机' => ['require', 'mobile'],

        ];
}